package com.situ.crm.controller;

import com.situ.crm.util.JSONResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Api(value = "商品管理", tags = "商品管理模块接口详情")
@Controller
@RequestMapping("/product")
public class ProductController {

    @ApiOperation(value = "查询所有接口", notes = "查找所有搜的接口信息")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "搜索的名字", required = false)
    })
    @RequestMapping(value = "/selectAll", method =  RequestMethod.POST)
    @ResponseBody
    public JSONResult selectByAll(String name) {
        return JSONResult.ok();
    }
}
